import request from '@/utils/request'

// 登录
export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    headers: {
      isToken: false
    },
    data: data
  })
}
// 注册
export function register(data) {
  return request({
    url: '/register',
    method: 'post',
    headers: {
      isToken: false
    },
    data: data
  })
}